package com.alfayun.fiscalriskanalysis.user;

import com.fasterxml.jackson.annotation.JsonView;

public final class UserVo {

	@JsonView(Output.class)
	public Integer id;
	@JsonView(Output.class)
	public String username;
	public String password;
	@JsonView(Output.class)
	public Integer enterpriseId;
	@JsonView(Output.class)
	public String enterpriseName;
	public Role role;
	public String openId;

	public UserVo() {
		// Empty.
	}

	public UserVo(User user) {
		this.id = user.getId();
		this.username = user.username;
		this.role = user.role;
		this.openId = user.openId;
	}

	public interface Output {
	}

}
